package com.tank.components;

import com.almasb.fxgl.dsl.components.RechargeableIntComponent;
import com.tank.constant.Config;

public class BulletLevelComponent extends RechargeableIntComponent {

    public BulletLevelComponent() {
        super(Config.MAX_TANK_LEVEL);
        setValue(0);
    }

    public void upgrade() {
        restore(1);
    }

    public void downGrade() {
        damage(1);
    }

    public void fullGrade() {
        restoreFully();
    }
}
